<template>
	<el-button  :auto-insert-space=true :round=true size='small' type='success'  @click="切换状态" >切换状态</el-button>
  <el-drawer
v-model="是否打开"
 direction='ttb' size='50%'

>
</el-drawer>
</template>
<script setup>
import { ref } from 'vue'
const 是否打开=ref(false)
const 切换状态=()=>{
是否打开.value=!是否打开.value
}

</script>
<style lang="scss"  scoped>

</style>
	